<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld"%>
<!DOCTYPE HTML>
<html>
<head>
    <title>角色管理</title>
    <meta charset="UTF-8">
    <base href="<%=basePath%>">
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="bootstrap/css/style.css" />
     <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
        .mouseover:hover{cursor:hand;color:#0000FF}
    </style>
   <script type="text/javascript" src="js/jquery.min.js"></script>
   <script type="text/javascript">
   	var x='${pageResult}';
   	if(x=='success'){
   		window.opener.location.reload();   
   		window.close();
   	}
   </script>
</head>
<body >
<form name = "syslogForm" id = "syslogForm" class="form-inline definewidth m20" 
  action="authority/updateAuthority.do" method="post">
  		<span class="label label-success">${pageResult}</span>
  		<table class="table table-bordered table-hover definewidth m10">
	    <tr>
	   		<td width=20%>功能名称</td>
	        <td width=80%><input name="name" id="name" value = "${returnInfo.name}" type="text" style="width:250px"/></td>
	    </tr>
<!-- 	    <tr> -->
<!-- 	   		<td>TYPE</td> -->
<!-- 	        <td><input name="type" id="type" value = "${returnInfo.type}" type="text" style="width:250px"/></td> -->
<!-- 	    </tr> -->
	   	<tr>
	   		<td>URL</td>
	        <td><input name="url" id="url" value = "${returnInfo.url}" type="text" style="width:250px"/></td>
	    </tr>
	    <tr>
	   		<td>父功能id</td>
	        <td><input name="parentId" id="parentId" value = "${returnInfo.parentId}" type="text" style="width:250px"/></td>
	    </tr>
		<tr>
			<td>状态</td>
			<td>
				<select  name = "status" id = "status" style="width:250px" >
			    	<option value = "0" <c:if test = "${returnInfo.status eq 0}">selected</c:if>>无效</option>
			    	<option value = "1" <c:if test = "${returnInfo.status eq 1}">selected</c:if>>有效</option>
		    	</select>
			</td>
		</tr>
		<tr>
	    	<td>&nbsp;</td>
	    	<td>
	    		<input type="submit" class="btn btn-primary" value = "确定">&nbsp;
	    		<button type="button" class="btn" onclick="frameElement.api.close();">关闭</button>
	    	</td>
	    </tr>
	</table>
  	<input type="hidden" name="id" id="id" value="${returnInfo.id}">
</form>
</body>
</html>